﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Data;
using System.Data.SqlClient;

/// <summary>
/// Summary description for clsBIENLAI_RUTPHI
/// </summary>
public class clsBIENLAI_RUTPHI
{
	public clsBIENLAI_RUTPHI()
	{
		//
		// TODO: Add constructor logic here
		//
	}

    #region Insert
    public static string Insert(Guid F_STT, string F_MACN, string F_MASO, int F_THANG, int F_NAM)
    {
        DatabaseConnect connect = new DatabaseConnect();
        SqlParameter[] para = new SqlParameter[5];
        para[0] = new SqlParameter("@F_STT", F_STT);
        para[1] = new SqlParameter("@F_MACN", F_MACN);
        para[2] = new SqlParameter("@F_MASO", F_MASO);
        para[3] = new SqlParameter("@F_THANG", F_THANG);
        para[4] = new SqlParameter("@F_NAM", F_NAM);
        try
        {
            connect.ExecuteQuery("BIENLAI_RUTPHI_Insert", para);
            return "OK";
        }
        catch
        {
            return "ERR";
        }
    }
    #endregion
}